package top.fengyulou.xiaofeng.mapper;

import org.apache.ibatis.annotations.Param;
import top.fengyulou.xiaofeng.dto.QuestionDto;

import java.util.List;

public interface QuestionMapper {
    List<QuestionDto> list(QuestionDto questionDto);

    QuestionDto getById(String id);

    void insert(QuestionDto question);

    void update(QuestionDto question);

    void delete(String[] ids);

    List<QuestionDto> getQuestionByClassifyId(@Param("classifyId") String classifyId, @Param("qstNum") Integer qstNum, @Param("qstType") String qstType);

    List<QuestionDto> getQuestionByLabelId(String labelId, Integer qstNum);
}